package com.kly.service;

import com.fqgj.common.api.Response;
import com.kly.dto.*;

import java.time.LocalDateTime;
import java.util.List;

public interface MemberBenefitsService {

    Response<List<MemberBenefitsDto>> getMemberBenefits(String memberCode, Integer benefitCode);

    Response<String> saveMemberBenefits(MemberDto member, ProductDto product);

    Response<String> reduceMemberBenefits(ReduceBenefitsDto reduceBenefits);

    /**
     * 读取指定时间段内破解ppv个数
     */
    Response<List<UserPCountDto>> getUserPCount(String chatUserCode, String chatterUserCode, LocalDateTime startTime, LocalDateTime endTime);

    /**
     * 获取用户权益消费记录
     */
    Response<List<UserBenefitsDto>> listBenefits(String userCode, String chatUserCode);

    /**
     * 读取用户会员权益
     */
    Response<Integer> getUserBenefitsCount(String userCode, Integer benefitCode);
    /**
     * 获取用户会员权益（包括已已过期会员但未消费的权益记录）
     */
    Response<List<MemberBenefitsDto>> getMemberBenefits(String userCode);
}
